
FROM docker.io/centos

ADD OpenResty.repo /etc/yum.repos.d/

RUN yum install -y openresty
RUN yum install -y git
RUN cd /usr/local/openresty/nginx/conf &&git clone https://git.oschina.net/54json/ngx-lua.git
RUN cd /usr/local/openresty/nginx/conf/&&mv nginx.conf nginx.conf.bak&&cp ngx-lua/nginx.conf.default ./nginx.conf 
RUN service openresty start
EXPOSE 80
